<template>
  <div>
    <v-header></v-header>
    <router-view />
      <el-button type="primary" @click="Toadmin">跳转admin后台</el-button>
    <v-foot></v-foot>
  </div>
</template>

<script>
import store from "vuex";
import foot from "../../components/foot.vue";
import header from "../../components/header.vue";

export default {
  name: "HelloWorld",
  data() {
    return {
      msg: this.$store.state.IndexHtml,
    };
  },
  components: {
    "v-foot": foot,
    "v-header": header,
  },
  methods:{
      Toadmin(){
        this.$router.push({path:'/admin'})
      }
  }
};
</script>

<!-- Add "scoped" attribute to limit CSS to this component only -->
<style scoped>
</style>
